import random

class Dice:

    def __init__(self, dices=1, seed=0, faces=6):
	self.seed=seed
	self.dices = dices
	self.faces = faces
	random.seed(seed)

    def Throw(self):
	sum = 0
	for i in range(self.dices):
	    sum += random.randint(1,self.faces)
	return sum

